package com.ryan.encrypttool.business.entity.covert;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import com.ryan.encrypttool.business.entity.po.UserPO;
import com.ryan.encrypttool.business.entity.vo.UserVO;

/**
 * @program encrypt-tool
 * @description
 * @author ryan
 * @create 2024-03-03 00:39
 **/
@Mapper
public interface UserMapStruct {

    @Mappings({@Mapping(source = "username", target = "username"), @Mapping(source = "password", target = "password"),
        @Mapping(source = "email", target = "email"), @Mapping(source = "phone", target = "phone"),
        @Mapping(source = "createTime", target = "createTime"), @Mapping(source = "updateTime", target = "updateTime")})
    public UserVO convert(UserPO userPO);
}
